<?php namespace App\Repositories\Money;

interface BalanceRepositoryInterface
{
    /**
     * 用户余额
     *
     * @param $user_id
     *
     * @return mixed
     */
    public function balance($user_id);

    /**
     * 记录平台余额消费记录
     *
     * @param        $flow_id
     * @param        $money
     * @param string $remark
     *
     * @return BalanceDetail
     */
    public function storePlatform($flow_id, $money, $remark = '');

    /**
     * 记录余额消费记录
     *
     * @param        $user_id
     * @param        $flow_id
     * @param        $money
     * @param string $remark
     *
     * @return BalanceDetail
     */
    public function store($user_id, $flow_id, $money, $remark = '');

}
